Jonathan Blandford [Wed, 31 Oct 2001 00:20:15 +0000 (00:20 +0000)]
massize rewrite. Static models now totally work. I'm not 100% sure about
Tue Oct 30 19:17:57 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
rewrite. Static models now totally work. I'm not 100% sure about
row_inserted and row_changed, but I'll get those later.
Matthias Clasen [Tue, 30 Oct 2001 23:58:00 +0000 (23:58 +0000)]
Updates. (#63293)
* gdk-pixbuf/gdk-pixbuf-sections.txt,
gdk-pixbuf/tmpl/animation.sgml,
gdk-pixbuf/tmpl/module_interface.sgml: Updates. (#63293)
Sven Neumann [Tue, 30 Oct 2001 16:51:39 +0000 (16:51 +0000)]
shut up CVS
Sven Neumann [Tue, 30 Oct 2001 15:52:09 +0000 (15:52 +0000)]
use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper output for configure
2001-10-30 Sven Neumann <sven@gimp.org>
* configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
output for configure --help.
Havoc Pennington [Tue, 30 Oct 2001 14:15:01 +0000 (14:15 +0000)]
Update the IM spot location here, if text was invalidated in the visible
2001-10-30 Havoc Pennington <hp@pobox.com>
* gtk/gtktextview.c (changed_handler): Update the IM spot location
here, if text was invalidated in the visible area, because the
scroll offset doesn't normally change in that case, and the mark
isn't set, just implicitly moved over as text is added/removed
Jonathan Blandford [Tue, 30 Oct 2001 00:24:08 +0000 (00:24 +0000)]
Code cleanup. (gtk_separator_menu_item_class_init): Fix bugs in this code.
Mon Oct 29 19:18:35 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkseparatormenuitem.c: Code cleanup.
(gtk_separator_menu_item_class_init): Fix bugs in this code.
jacob berkman [Mon, 29 Oct 2001 21:50:06 +0000 (21:50 +0000)]
automake doesn't support conditionalized LDFLAGS, so put win32 flags in
2001-10-29 jacob berkman <jacob@ximian.com>
* gdk/Makefile.am (LDFLAGS):
* gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
LDFLAGS, so put win32 flags in here
Jonathan Blandford [Mon, 29 Oct 2001 20:43:01 +0000 (20:43 +0000)]
Darn. I can't believe this took this long to fix.
Mon Oct 29 15:41:58 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
I can't believe this took this long to fix.
Jonathan Blandford [Mon, 29 Oct 2001 18:56:00 +0000 (18:56 +0000)]
fix reordered signal.
Mon Oct 29 13:54:49 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
reordered signal.
Owen Taylor [Mon, 29 Oct 2001 18:44:15 +0000 (18:44 +0000)]
Grab the focus to the fileop entry for create dir / rename file.
Mon Oct 29 12:27:51 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
the focus to the fileop entry for create dir / rename
file.
Owen Taylor [Mon, 29 Oct 2001 17:25:40 +0000 (17:25 +0000)]
Don't use AC_CHECK_FILE to check for a file since it always spits warnings
Mon Oct 29 12:21:49 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Don't use AC_CHECK_FILE to check for a
file since it always spits warnings about cross compilation,
use -f instead. It's not like we cross compile properly
anyways.
* configure.in (gtktargetlib): Move call to AC_PROG_CC
to suppress autoconf warning.
* acconfig.h: Add some missing #undefs from recent
Win32 additions.
Owen Taylor [Mon, 29 Oct 2001 16:51:37 +0000 (16:51 +0000)]
Don't try to use pkg-config when we didn't find it. (#62944, Eric Lemings)
Mon Oct 29 11:31:40 2001 Owen Taylor <otaylor@redhat.com>
* m4macros/gtk-2.0.m4: Don't try to use pkg-config
when we didn't find it. (#62944, Eric Lemings)
* m4macros/gtk-2.0.m4: Fix problem with spaces around =
sign in assignment. (#63209, Arkadiusz Miskiewicz)
Anders Carlsson [Mon, 29 Oct 2001 16:48:56 +0000 (16:48 +0000)]
Calculate the buttons size request before using it. Fixes #61696.
2001-10-29 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
the buttons size request before using it. Fixes #61696.
Tor Lillqvist [Mon, 29 Oct 2001 07:06:37 +0000 (07:06 +0000)]
Updates.
2001-10-29 Tor Lillqvist <tml@iki.fi>
* README.win32: Updates.
* gtk-zip.sh.in: New file, used to build distribution package for
Windows.
* gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
applicable with GDKVAR.
* gtk/gtk.def: Update.
* gtk/gtkfilesel.c: Include <winsock.h> (if available) for
gethostname().
* gtk/gtkmain.c
* gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
g_win32_get_package_installation_subdirectory() with the actual
DLL name saved above. Redefine above directory name macros to call
these functions. Remove some ifdefs.
* gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
variable for export on Win32) also to the _vars file.
Changes for autoconfiscated build on Win32, and addition of Win32
backend to the related files:
* configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
when forming DLL name in some files. Set MS_LIB_AVAILABLE is
lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
win32 target, using pangowin32. Don't use the
-export-symbols-regex option on Win32, we use .def files to list
exported symbols. Check <winsock.h> (for gethostname() in
gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
prevent premature m4 expansion.
* acconfig.h: Add HAVE_WINTAB.
* gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
MS_LIB_AVAILABLE, build MS import library. Install the import
libraries. If HAVE_WINTAB, link with the Wintab library.
* gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
file. Install import libraries.
Tor Lillqvist [Mon, 29 Oct 2001 06:50:55 +0000 (06:50 +0000)]
New file, hand-written wrapper for the Wintab library.
2001-10-29 Tor Lillqvist <tml@iki.fi>
* gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
Wintab library.
* gdk/win32/gdkwin32.h
* gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
X11 headers better, and to enable gdkwin32.h to be installed and
included from applications, but not the *-win32.h headers.
* gdk/win32/*.c: Corresponding small changes, simplifications of
#includes.
* gdk/win32/gdkregion-win32.c: Remove.
* gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
* gdk/win32/gdkfont-win32.c
* gdk/win32/gdkgeometry-win32.c: Remove unused variables.
* gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
GDK_NONE values into hash table.
Changes for autoconfiscated build on Win32, and addition of Win32
backend to the related files:
* gdk/win32/Makefile.am: Actually enable building the win32
objects here, not just list all files in EXTRA_DIST. Link in the
compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
copy the Wintab library into the .libs directory.
* gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
name of the GDK DLL when fetching the icon. Use the HMODULE saved
in gdk_dll_hinstance by DllMain.
* gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
build/win32/lt-compile-resource script.
* gdk/win32/rc/gdk.rc.in
* gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
Tor Lillqvist [Mon, 29 Oct 2001 06:48:04 +0000 (06:48 +0000)]
Use -no-undefined on Win32. Make libgdk_pixbuf_1_3_la_OBJECTS depend on
2001-10-29 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use -no-undefined on Win32. Make
libgdk_pixbuf_1_3_la_OBJECTS depend on
gdk-pixbuf-marshal.c. Install import libraries.
* gdk_pixbuf.def: Update.
* gdk-pixbuf-io.c: (Win32) Use G_WIN32_DLLMAIN_FOR_DLL_NAME, saves
the actual DLL name of libgdk_pixbuf.
(get_libdir): Use it instead of guessing.
* io-xbm.c (gdk_pixbuf__xbm_image_begin_load): Use
g_file_open_tmp() insread of mkstemp().
Anders Carlsson [Sun, 28 Oct 2001 23:47:37 +0000 (23:47 +0000)]
Fix build.
2001-10-29 Anders Carlsson <andersca@gnu.org>
* gtk/gtkiconfactory.c (get_default_icons): Fix build.
Anders Carlsson [Sun, 28 Oct 2001 22:11:10 +0000 (22:11 +0000)]
Update struct member docs since they're gdouble now instead of gfloat.
2001-10-28 Anders Carlsson <andersca@gnu.org>
* gtk/tmpl/gtkadjustment.sgml: Update struct member docs
since they're gdouble now instead of gfloat. Fixes #55699.
Hans Breuer [Sun, 28 Oct 2001 21:28:51 +0000 (21:28 +0000)]
static correct-ness, underscore prefixing of library internal functions
2001-10-28 Hans Breuer <hans@breuer.org>
* gdk/gdk.c gdk/gdkevents.c
gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
static correct-ness, underscore prefixing of library internal
functions
(applied the undisputed and the win32 part. Of the latter
I'm probably the one who will change it back again, if Owen
decides that the Gdk*Impl types should not be private to Gdk)
* gdk/gdk.def : added the remaining exported functions
Matthias Clasen [Sun, 28 Oct 2001 21:20:25 +0000 (21:20 +0000)]
Forgotten file.
Matthias Clasen [Sun, 28 Oct 2001 21:15:36 +0000 (21:15 +0000)]
Documentation updates.
* gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
* docs/reference/gtk/tmpl/gtkmenuitem.sgml,
docs/reference/gtk/tmpl/gtkmenu.sgml,
docs/reference/gtk/tmpl/gtkmenushell.sgml,
docs/reference/gtk/tmpl/gtkcontainer.sgml,
docs/reference/gtk/gtk-sections.txt: Updates.
Anders Carlsson [Sun, 28 Oct 2001 17:54:50 +0000 (17:54 +0000)]
Remove note about coordinates in GdkPoint being 16-bit since they're
2001-10-28 Anders Carlsson <andersca@gnu.org>
* gdk/tmpl/regions.sgml: Remove note about coordinates in GdkPoint
being 16-bit since they're 32-bit now. Fixes #62681.
jacob berkman [Sun, 28 Oct 2001 16:49:56 +0000 (16:49 +0000)]
do not call gtk_settings_get_default() here as that requires an X
2001-10-28 jacob berkman <jacob@ximian.com>
* gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
gtk_settings_get_default() here as that requires an X connection
(which breaks doc building with no X connection) and is not
multihead safe
(gtk_color_selection_init): delay palette loading until realize
time
(gtk_color_selection_realize): load the palette, and initialize
the global palette if it hasn't been already
* gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
visual/cmap fields of klass->info since they are gone
(gtk_preview_get_visual): just return gdk_rgb_get_visual ()
(gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
(gtk_preview_realize): don't set VISUAL and COLORMAP attributes
* gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
cmap fields
(gtk_preview_get_visual):
(gtk_preview_get_cmap): mark as deprecated
* docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
changes
Owen Taylor [Sun, 28 Oct 2001 14:17:49 +0000 (14:17 +0000)]
un Oct 28 09:15:39 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
structure to have GObject not GtkObject as
parent_instance. (Jeff Franks.)
Tor Lillqvist [Sun, 28 Oct 2001 00:54:12 +0000 (00:54 +0000)]
file gtk+-zip.sh was initially added on branch gtk-1-3-win32-production.
Matthias Clasen [Sat, 27 Oct 2001 20:41:05 +0000 (20:41 +0000)]
Typo fix. Updates. Document the special values <none> and <parent> for
* gdk/x11/gdkinput.c: Typo fix.
* gdk/tmpl/input_devices.sgml: Updates.
* gtk/tmpl/gtkrc.sgml: Document the special values <none> and
<parent> for bg_pixmap.
Tim Janik [Sat, 27 Oct 2001 17:49:27 +0000 (17:49 +0000)]
cosmetics
Havoc Pennington [Sat, 27 Oct 2001 02:41:24 +0000 (02:41 +0000)]
Call update_im_spot_location here explicitly
2001-10-26 Havoc Pennington <hp@pobox.com>
* gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
update_im_spot_location here explicitly
(gtk_text_view_reset_im_context): don't update the spot location
here
Anders Carlsson [Sat, 27 Oct 2001 01:32:26 +0000 (01:32 +0000)]
Clarify that the string argument in gtk_accel_label_new most be non-NULL.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/tmpl/gtkaccellabel.sgml: Clarify that the string
argument in gtk_accel_label_new most be non-NULL.
This fixes #54826.
Anders Carlsson [Sat, 27 Oct 2001 01:27:34 +0000 (01:27 +0000)]
Clarify that a maximum length of 0 means infinity. This fixes #58771.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/tmpl/gtkentry.sgml: Clarify that a maximum length
of 0 means infinity. This fixes #58771.
Anders Carlsson [Sat, 27 Oct 2001 01:23:22 +0000 (01:23 +0000)]
Fix typo in docs. This fixes #62942.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
This fixes #62942.
Anders Carlsson [Sat, 27 Oct 2001 01:21:14 +0000 (01:21 +0000)]
Finish a sentence. This fixes #56702.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/tmpl/gtkhandlebox.sgml: Finish a sentence.
This fixes #56702.
Anders Carlsson [Sat, 27 Oct 2001 01:17:38 +0000 (01:17 +0000)]
Clarify that we're returning a spin button in the _new function. This
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/gtkspinbutton.c (gtk_spin_button_new_with_range):
Clarify that we're returning a spin button in the _new function.
This fixes #54097.
Anders Carlsson [Sat, 27 Oct 2001 01:16:09 +0000 (01:16 +0000)]
Clarify that we're returning a spin button in the _new function. This
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/tmpl/gtkspinbutton.sgml: Clarify that we're
returning a spin button in the _new function.
This fixes #54097.
Anders Carlsson [Sat, 27 Oct 2001 01:03:15 +0000 (01:03 +0000)]
Change docs for gtk_toolbar_append_item to say that it appends an item to
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/tmpl/gtktoolbar.sgml: Change docs for
gtk_toolbar_append_item to say that it appends an item
to the end of a toolbar. This fixes #60428.
Owen Taylor [Sat, 27 Oct 2001 01:03:10 +0000 (01:03 +0000)]
fix typos in ChangeLog
Anders Carlsson [Sat, 27 Oct 2001 01:01:09 +0000 (01:01 +0000)]
Remove gtk_tree_view_column_cell_event here too.
Owen Taylor [Sat, 27 Oct 2001 00:59:51 +0000 (00:59 +0000)]
Oct 26 20:55:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST.
Unfortunately, people apparently erroneously connect
to ::clicked for GtkToggleButton and expect
they know what happened in the default signal handler
instead of appropriately connecting to notification
signal ::toggled. When the revolution comes, such
people will be first against the wall.
We'll just have to go back to the old less-reliable
set-it-back hacks for handling model-view toggle
buttons and entries. :-(.
Owen Taylor [Sat, 27 Oct 2001 00:54:26 +0000 (00:54 +0000)]
Oct 26 11:54:53 2001 Owen Taylor <otaylor@redhat.com>
* */Makefile.am: Update to install images.
Anders Carlsson [Sat, 27 Oct 2001 00:48:55 +0000 (00:48 +0000)]
Remove documentation for gtk_tree_view_column_cell_event since that
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/tmpl/gtktreeviewcolumn.sgml: Remove documentation for
gtk_tree_view_column_cell_event since that function has been
removed. This fixes #62084.
Hans Breuer [Sat, 27 Oct 2001 00:41:12 +0000 (00:41 +0000)]
to simplify parsing for exported functions: - made implementation
2001-10-27 Hans Breuer <hans@breuer.org>
* gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
gtk/gtktreestore.c gtk/gtkvbbox.c :
to simplify parsing for exported functions:
- made implementation signature static, when the local
prototype already was
- put the functions return value on it's own line
- added as space between the function name and the
opening bracket
* gtk/gtk.def : added the remaining exported functions
Anders Carlsson [Sat, 27 Oct 2001 00:25:17 +0000 (00:25 +0000)]
Add note about width having to be greater than 0. This fixes #55574.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
Add note about width having to be greater than 0. This fixes
#55574.
Anders Carlsson [Sat, 27 Oct 2001 00:18:23 +0000 (00:18 +0000)]
Fix docs to say previous instead of next.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start):
Fix docs to say previous instead of next.
(gtk_text_iter_backward_word_start): Likewise.
This fixes bug #62980.
Anders Carlsson [Sat, 27 Oct 2001 00:13:48 +0000 (00:13 +0000)]
Change FALSE to TRUE in documentation for gdk_atom_intern, to document the
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gdk/tmpl/properties.sgml: Change FALSE to TRUE in
documentation for gdk_atom_intern, to document the
correct behavior. This fixes #58798.
Anders Carlsson [Sat, 27 Oct 2001 00:03:13 +0000 (00:03 +0000)]
Mention that the valid width is in range 0-65535 pixels. Fixes bug #56754.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
that the valid width is in range 0-65535 pixels. Fixes bug
#56754.
Anders Carlsson [Fri, 26 Oct 2001 23:47:38 +0000 (23:47 +0000)]
Remove a dot in the documentation. Fixes bug #62632.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
a dot in the documentation. Fixes bug #62632.
This has got to be the most useful bug I have ever fixed :)
Anders Carlsson [Fri, 26 Oct 2001 23:43:32 +0000 (23:43 +0000)]
Ugh, broken pipe.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gdk/x11/gdkmain-x11.c: Replace int and guint with
long and gulong in some places to make the code 64-bit
clean.
(_gdk_windowing_init_check): Replace gint with gulong.
This patch was made by George Lebl and fixes bug #62113.
Anders Carlsson [Fri, 26 Oct 2001 23:43:16 +0000 (23:43 +0000)]
Replace int and guint with long and gulong in some places to make the code
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gdk/x11/gdkmain-x11.c: Replace int and guint with
long and gulong in some places to make the code 64-bit
clean.
(_gdk_windowing_init_check): Replace gint with gulong.
This patch was made by George Lebl and fixes bug #62113.
Anders Carlsson [Fri, 26 Oct 2001 23:37:21 +0000 (23:37 +0000)]
Set up destroy signals so that all windows will be destroyed when one is.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* tests/testgtk.c
(create_window_states): Set up destroy signals so that
all windows will be destroyed when one is. This fixes
bug #58133.
Anders Carlsson [Fri, 26 Oct 2001 23:06:43 +0000 (23:06 +0000)]
Don't set a fixed height on the hscale widget. This fixes "bug" #55840.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* tests/testgtk.c (create_range_controls): Don't set a
fixed height on the hscale widget. This fixes "bug"
#55840.
Anders Carlsson [Fri, 26 Oct 2001 22:48:20 +0000 (22:48 +0000)]
Update GtkStyle since it's now a GObject and not a struct. This fixes
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/gtk-sections.txt: Update GtkStyle since it's now a
GObject and not a struct. This fixes #55807.
Thanks to Damon for helping me out with gtk-doc and finding the solution
to this bug.
Anders Carlsson [Fri, 26 Oct 2001 19:45:06 +0000 (19:45 +0000)]
Create new "indent_expander" style property.
2001-10-26 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreeview.c:
(gtk_tree_view_class_init): Create new "indent_expander"
style property.
(gtk_tree_view_get_arrow_xrange): Add a tree argument
to the function since the xrange can change depending
on where in the tree we are.
(coords_are_over_arrow): Update function call to
gtk_tree_view_get_arrow_xrange.
(gtk_tree_view_draw_arrow): Likewise.
(gtk_tree_view_real_expand_collapse_cursor_row):
Call real_{expand|collapse}_row, so that we'll have an
animation.
Kristian Rietveld [Fri, 26 Oct 2001 18:12:34 +0000 (18:12 +0000)]
fixed a small typo
Fri Oct 26 20:13:36 2001 Kristian Rietveld <kristian@planet.nl>
* tests/Makefile.am: fixed a small typo
Kristian Rietveld [Fri, 26 Oct 2001 16:31:01 +0000 (16:31 +0000)]
Anders Carlsson suggested to use G_N_ELEMENTS here
Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl>
* demos/gtk-demo/list_store.c (create_model): Anders
Carlsson suggested to use G_N_ELEMENTS here
Sven Neumann [Fri, 26 Oct 2001 15:44:20 +0000 (15:44 +0000)]
gtk/gtkbutton.[ch] fixed inline comments
2001-10-26 Sven Neumann <sven@gimp.org>
* gtk/gtkbutton.[ch]
* gtk/gtkdnd.c: fixed inline comments
* gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
Sven Neumann [Fri, 26 Oct 2001 15:41:46 +0000 (15:41 +0000)]
gtk/gtkbutton.[ch] fixed inline comments
2001-10-26 Sven Neumann <sven@gimp.org>
* gtk/gtkbutton.[ch]
* gtk/gtkdnd.c: fixed inline comments
* gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
Jonathan Blandford [Fri, 26 Oct 2001 14:44:27 +0000 (14:44 +0000)]
sync minor clenup
Hans Breuer [Fri, 26 Oct 2001 14:38:12 +0000 (14:38 +0000)]
updated externals
2001-10-26 Hans Breuer <hans@breuer.org>
* gdk-pixbuf/gdk_pixbuf.def :
* gdk/gdk.def :
* gtk/gtk.def : updated externals
* gdk/win32/gdkpixmap-win32.c : removed duplicate of
gdk_window_lookup implementation. It already was in
gdk/win32/gdkwindow-win32.c
* gdk/win32/gdkproperty-win32.c : made it compile again
after GdkAtom API change
* gtk/gtk/makefile.msc.in : updated
Owen Taylor [Thu, 25 Oct 2001 21:07:53 +0000 (21:07 +0000)]
Version 1.3.10, require GLib 1.3.10.
Wed Oct 24 11:36:33 2001 Owen Taylor <otaylor@redhat.com>
* configure.in (GTK_MICRO_VERSION): Version 1.3.10,
require GLib 1.3.10.
* NEWS: updates.
Jonathan Blandford [Thu, 25 Oct 2001 20:32:40 +0000 (20:32 +0000)]
Add support for invalid nodes. (_gtk_rbnode_rotate_right): Ditto.
Thu Oct 25 16:27:29 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
invalid nodes.
(_gtk_rbnode_rotate_right): Ditto.
(_gtk_rbtree_node_mark_invalid): New function.
(_gtk_rbtree_node_mark_valid): New function.
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
GObject, not a GtkObject.
(gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
correct.
(gtk_tree_model_sort_row_deleted): ditto.
(gtk_tree_model_sort_{un,}ref_node): Fix.
* gtk/gtktreeview.c: Protean incremental reflow support (commented
out)
* gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
to const char *key.
* gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
Important 1 line fix to fix a lot of refcounting woes.
Matt Wilson [Thu, 25 Oct 2001 17:05:35 +0000 (17:05 +0000)]
call gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
2001-10-25 Matt Wilson <msw@redhat.com>
* gtk/gtktextview.c (gtk_text_view_destroy): call
gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
now invalidates) so that we remove our idle functions.
(gtk_text_view_destroy_layout): remove the first_validate_idle as
well.
Matt Wilson [Thu, 25 Oct 2001 15:17:57 +0000 (15:17 +0000)]
remove conflict mark
Matt Wilson [Thu, 25 Oct 2001 14:02:51 +0000 (14:02 +0000)]
the valid range for the 'indent' property is G_MININT to G_MAXINT. Don't
2001-10-25 Matt Wilson <msw@redhat.com>
* gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
the 'indent' property is G_MININT to G_MAXINT. Don't use
-G_MAXINT for the minimum of the 'rise' property, use G_MININT
instead.
Anders Carlsson [Thu, 25 Oct 2001 05:22:13 +0000 (05:22 +0000)]
This ought to make msw happy since it fixes #62887.
2001-10-24 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreeview.c:
(gtk_tree_view_real_expand_row): add an animate argument
(gtk_tree_view_real_collapse_row): likewise
(gtk_tree_view_button_press), (gtk_tree_view_button_release),
(gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
(gtk_tree_view_collapse_row): update functions that call
real_{expand|collapse}_row to set the animate argument
accordingly.
Alex Larsson [Wed, 24 Oct 2001 23:41:12 +0000 (23:41 +0000)]
Update to new Pango APIs
2001-10-24 Alex Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkfont-fb.c:
Update to new Pango APIs
* gdk/linux-fb/gdkproperty-fb.c:
Update to new GdkAtom APIs
* gdk/linux-fb/gdkwindow-fb.c:
Remove warnings
Jonathan Blandford [Wed, 24 Oct 2001 22:54:59 +0000 (22:54 +0000)]
Fix docs, #62808
Mon Oct 22 20:07:21 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
Kristian Rietveld [Wed, 24 Oct 2001 20:54:32 +0000 (20:54 +0000)]
treat s_path as a child path
Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
s_path as a child path
Kristian Rietveld [Wed, 24 Oct 2001 18:36:50 +0000 (18:36 +0000)]
more changes in an attempt to get it right. It's not yet ready for general
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
* gtk/gtktreemodelsort.c: more changes in an attempt to get
it right. It's not yet ready for general consumption.
* tests/treestoretest.c: add a button and entry for the new
iter_change function
(iter_change): new function, to test
the row_changed signal implementation of the GtkTreeModelSort
* tests/testtreesort.c: cleanups, changes to test more features
of the GtkTreeModelSort at once
Havoc Pennington [Wed, 24 Oct 2001 17:51:56 +0000 (17:51 +0000)]
remove hack to strip off the bogus newline, since we killed the bogus
2001-10-24 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
remove hack to strip off the bogus newline, since we killed the
bogus newline; fixes #61779
Havoc Pennington [Wed, 24 Oct 2001 16:24:07 +0000 (16:24 +0000)]
forgot to save ChangeLog after adding a phrase
Havoc Pennington [Wed, 24 Oct 2001 16:11:41 +0000 (16:11 +0000)]
don't create layout if we didn't have one (gtk_text_view_set_buffer):
2001-10-24 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
create layout if we didn't have one
(gtk_text_view_set_buffer): invalidate so we get the idle handlers
as appropriate, avoids blanking the screen
(gtk_text_view_invalidate): new function to do invalidation,
containing old guts of invalidated_handler
Owen Taylor [Wed, 24 Oct 2001 14:30:39 +0000 (14:30 +0000)]
Improve dreadful tooltips.
Wed Oct 24 10:29:47 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkalignment.c (gtk_alignment_class_init): Improve
dreadful tooltips.
Owen Taylor [Wed, 24 Oct 2001 14:15:50 +0000 (14:15 +0000)]
Always set window->parent (except or the root window itself); if the
Tue Oct 23 17:31:42 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always
set window->parent (except or the root window itself); if
the window's parent is not a GdkWindow, or is a window of
type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
* gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
windows of type GDK_WINDOW_FOREIGN.
Stanislav Visnovsky [Wed, 24 Oct 2001 12:12:10 +0000 (12:12 +0000)]
More updates.
2001-10-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
* sk.po: More updates.
Havoc Pennington [Wed, 24 Oct 2001 04:48:21 +0000 (04:48 +0000)]
if we move to the front of a segment, use the "slow" technique for moving
2001-10-24 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
the front of a segment, use the "slow" technique for moving
backward, so we don't mess up the any_segment field in the iter.
Fixes #57707
* tests/testtextbuffer.c: add code to detect #57707, to avoid
regression
Havoc Pennington [Tue, 23 Oct 2001 23:35:00 +0000 (23:35 +0000)]
only sensitize Cut if selection contains some editable text, #60975
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (popup_targets_received): only sensitize Cut
if selection contains some editable text, #60975
(gtk_text_view_scroll_to_iter): remove warning about scrolling
prior to map; it should actually be OK to do so in many cases,
it would be nice to warn about scrolling when many lines have
height 0, but I don't know what to do about that. Perhaps
move part of flush_scroll into this function? comment added
to consider this.
Havoc Pennington [Tue, 23 Oct 2001 23:21:27 +0000 (23:21 +0000)]
oops, didn't quite compile.
Havoc Pennington [Tue, 23 Oct 2001 23:06:14 +0000 (23:06 +0000)]
Correctly keep the same text on the top of the screen, considering that
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (changed_handler): Correctly keep the same
text on the top of the screen, considering that the changed region
may have overlapped the first paragraph. Should fix msw's "text
widget scrolled to wrong place on map" bug, and probably some
other scrolling cases as well.
(gtk_text_view_set_scroll_adjustments): start adjustments at 0.0,
instead of some random value
* gtk/gtktextview.c (gtk_text_view_class_init): actually override
grab_focus, so #59708 is really fixed
Anders Carlsson [Tue, 23 Oct 2001 22:43:01 +0000 (22:43 +0000)]
Use an image menu item here (popup_targets_received): Call
2001-10-24 Anders Carlsson <andersca@gnu.org>
* gtk/gtkentry.c: (append_action_signal): Use an image menu item here
(popup_targets_received): Call append_action_signal with stock items
* gtk/gtklabel.c: (append_action_signal): Use an image menu item here
(gtk_label_do_popup): Call append_action_signal with stock items
* gtk/gtktextview.c: (append_action_signal): Use an image menu item here
(popup_targets_received): Call append_action_signal with stock items
Havoc Pennington [Tue, 23 Oct 2001 20:13:44 +0000 (20:13 +0000)]
queue a resize here; will temporarily slow down the widget a lot, until we
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (changed_handler): queue a resize here; will
temporarily slow down the widget a lot, until we figure out how to
optimize to avoid full redraw everytime we queue a resize
Havoc Pennington [Tue, 23 Oct 2001 19:31:56 +0000 (19:31 +0000)]
handle case where offset == 0 and char_len == 0, bug #61729
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
0 and char_len == 0, bug #61729
Havoc Pennington [Tue, 23 Oct 2001 19:19:10 +0000 (19:19 +0000)]
fix return value, #61714 (Vitaly Tishkov)
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
return value, #61714 (Vitaly Tishkov)
(gtk_text_iter_backward_sentence_starts): ditto
(gtk_text_iter_backward_word_starts): ditto
(gtk_text_iter_forward_word_ends): ditto
(gtk_text_iter_forward_sentence_ends): ditto
(gtk_text_iter_backward_cursor_positions): ditto
Havoc Pennington [Tue, 23 Oct 2001 17:45:33 +0000 (17:45 +0000)]
Apply fix from Dov Grobgeld, #61858
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
fix from Dov Grobgeld, #61858
Havoc Pennington [Tue, 23 Oct 2001 17:26:57 +0000 (17:26 +0000)]
credit Hidetoshi
Havoc Pennington [Tue, 23 Oct 2001 17:26:13 +0000 (17:26 +0000)]
Update IM spot location at appropriate times, #50626
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
Update IM spot location at appropriate times, #50626
Havoc Pennington [Tue, 23 Oct 2001 16:17:15 +0000 (16:17 +0000)]
remove conflict markers
Havoc Pennington [Tue, 23 Oct 2001 16:07:05 +0000 (16:07 +0000)]
scroll to cursor on grab focus, unless it's caused by button click, #59708
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
on grab focus, unless it's caused by button click, #59708
Owen Taylor [Tue, 23 Oct 2001 16:02:23 +0000 (16:02 +0000)]
Remove G_DISABLE_CONST_RETURNS.
Tue Oct 23 11:53:00 2001 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
* gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
G_CONST_RETURN. (Murray Cumming)
* gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
Make G_CONST_RETURN.
* gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
results of g_get_home_dir().
* gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated
copy. Storing the return from gtk_entry_get_text() is evil.
* gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c
gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c
gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
gtk/gtksignal.c: Add const.
* gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
* gtk/gtktreeview.c: Namespace object data keys to be safe, even
if we are setting them on private widgets.
* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
Duplicate entry->text before setting it as object data.
Havoc Pennington [Mon, 22 Oct 2001 23:35:03 +0000 (23:35 +0000)]
don't back up a char from the end iterator, fixes #61859 ("can't put
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
up a char from the end iterator, fixes #61859 ("can't put cursor
at the end of the buffer")
* gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
to work with delimiters other than newline.
* tests/testtextbuffer.c: add some tests for get_chars_in_line,
get_bytes_in_line
* gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
last line, since the newline is no longer counted.
(gtk_text_iter_get_bytes_in_line): ditto
Tor Lillqvist [Mon, 22 Oct 2001 23:27:19 +0000 (23:27 +0000)]
file makefile.msc.in was initially added on branch gtk-1-3-win32-production.
Tor Lillqvist [Mon, 22 Oct 2001 23:26:09 +0000 (23:26 +0000)]
file gdk-1.3-win32-production.pc.in was initially added on branch gtk-1-3-win32-production.
Tor Lillqvist [Mon, 22 Oct 2001 23:26:09 +0000 (23:26 +0000)]
file gtk+-1.3-win32-production.pc.in was initially added on branch gtk-1-3-win32-production.
Havoc Pennington [Mon, 22 Oct 2001 22:28:27 +0000 (22:28 +0000)]
add assertion that #58290 would trigger if it reappeared, I think
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that
#58290 would trigger if it reappeared, I think
Havoc Pennington [Mon, 22 Oct 2001 22:17:21 +0000 (22:17 +0000)]
add temporary code to dump btree contents on assertion failure described
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
add temporary code to dump btree contents on assertion failure
described in #62656
* gtk/gtktextbtree.c (ensure_end_iter_segment): add some
assertions that we're getting the right end iter segment
* gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
verify that we aren't on the end iterator after moving
forward one segment - fixes return value in an obscure case.
Also, some trivial code cleanup/rearranging.
Havoc Pennington [Mon, 22 Oct 2001 21:52:47 +0000 (21:52 +0000)]
add a #error unless you define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.h: add a #error unless you define
GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
* gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
Havoc Pennington [Mon, 22 Oct 2001 21:28:08 +0000 (21:28 +0000)]
fix #62365
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
#62365
Havoc Pennington [Mon, 22 Oct 2001 21:06:55 +0000 (21:06 +0000)]
fix #62436
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_window_type): fix
#62436
Havoc Pennington [Mon, 22 Oct 2001 21:05:28 +0000 (21:05 +0000)]
Fix #62366
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix
#62366
Owen Taylor [Mon, 22 Oct 2001 21:01:47 +0000 (21:01 +0000)]
Add cursor-position, selection-bound properties. (#62148, reported by
Mon Oct 22 11:47:47 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtklabel.c: Add cursor-position, selection-bound
properties. (#62148, reported by Padraig O'Briain)
* gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
to cursor_position. (1.3.x addition, text_position is an awful
name.) Make cursor_position read-only to avoid sticky questions
of interaction with selection_bound. (#62636, reported by
Padraig O'Briain)
Owen Taylor [Mon, 22 Oct 2001 20:47:01 +0000 (20:47 +0000)]
Fixing popup menus to have "Paste" sensitized correctly. Original patches
Mon Oct 22 16:25:12 2001 Owen Taylor <otaylor@redhat.com>
Fixing popup menus to have "Paste" sensitized correctly. Original
patches from Damian Ivereigh, much mangled.
* gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
gtk_selection_data_targets_include_text(). (#60854)
* gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
the clipboard has text" function gtk_clipboard_wait_is_text_available.
(#60854)
* gtk/gtkentry.c: Only enable the paste item if the clipboard
contains text. (#60973)
* gtk/gtktextview.c: Only enable the paste item if the clipboard
contains text. (#60975)